/**
 * 项目列表
 */
import query from '../../untils/mysql';
import { Tip } from '../../untils/untils';

const GET = async (req: any, res: any, next: any) => {
    try {
        const { userId } = req.auth;
        const data = await query(`select b.* from project_pople a join project b on a.project_id = b.id where pople_id = '${userId}'`);
        return Tip.tipSuccess(res, '查询成功', data)
    } catch (error: any) {
        Tip.tipError500(res, error)
    }
}

export {
    GET
}